<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ page import="com.lc.gcloud.framework.util.HttpUtils"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Map"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<title>${article.title}-文献库</title>
<%
	String webPath = HttpUtils.getAbsoluteContextPath(request);
	String issn = request.getParameter("issn");
	String q = request.getParameter("q");
%>
<meta name="keywords" content="${article.keywords},基因,高通量分析,基因测序,基因芯片,生物,医学,数据库,后分析,统计分析,差异基因,基因表达数据库,科研委托" />
<meta name="Description" content="${article.articleAbstract},${article.authors}"> 
<link rel="stylesheet" media="screen and (max-width:680px)" href="<%=webPath%>skins/css/small-srceen.css">
<script type="text/javascript" src="/articleWeb/jsp/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/articleWeb/jsp/js/getQueryString.js"></script>
<script type="text/javascript">
	window.onload = function (){
		var q = $("#q").val();
		var issn = $("#issn").val();
		$.ajax({
			type : 'POST',
			url : G.cmdPath + 'search/article/detail',
			data : {q:q,issn:issn},
			dataType : "json",
			success : function(obj){
				$("#article_abbreviated_journal_title_first").text(obj.abbreviated_journal_title);
				$("#article_abbreviated_journal_title_second").text(obj.abbreviated_journal_title);
				$("#article_full_title").text(obj.full_title);
				$("#article_subcategory").text(obj.subcategory);
				$("#cited_half_life").text(obj.cited_half_life);
				$("#cited_half_life").attr("href",obj.journal_url);
			},
			error:function(){
				//alert("search/article/detail error");
			}
		});
		$.ajax({
			type : 'POST',
			url : G.cmdPath + 'search/article/journalList',
			data : {issn:issn},
			dataType : "json",
			success : function(obj){
				if(obj.length>0){
					var content = "";
					for(var i=0;i<obj.length;i++){
						content += "<label>"+obj[i].year+"："+obj[i].value+"</label>&nbsp;&nbsp;&nbsp;";
					}
					$("#article_journal_list").html(content);
				}
			},
			error:function(){
				//alert("get journalList error");
			}
		});
	};
</script>
<style type="text/css">
	body {
		background: #FFF;
	}
	.q{
		color:red;
	}
 @media only screen and (max-device-width : 680px){
	.form-simple .form-hr .fieldInput{ width:100%;text-align: justify}
	.main_box .form-simple .form-hr .fieldLabel{line-height: 30px;}
 }
</style>
</head>
<body>
	<input type='hidden' id='q' value=<%=q%>  />
	<input type='hidden' id='issn' value=<%=issn%>  />
	<div class="container container_ban">
		<div id="breadcrumb" style="background-color: #BDC5E8;margin-top:2px;">
						<nav id="nav" class='subject'>
						<p>	
							<a href="/articleWeb/jsp/public/articlesearch.jsp?type=article&q=<%=q%>">&nbsp;&nbsp;&nbsp;文献搜索</a>&gt;
							<label id="article_abbreviated_journal_title_first"></label>
						</p>
						</nav>
						</div>
		<div class="main_box margin_top_15">
			<fieldset>
				<form class="form-inline queryForm" role="form">
					<h3 class="subject" style="text-align: center;"></h3>
				
					<div class="form-simple">
					
						<div class="form-hr">
							<div class="fieldLabel" title="article_abbreviated_journal_title_first">标题</div>
							<div class="fieldInput">
								<label id='article_abbreviated_journal_title_second'></label>
							</div>
							<div class="clear"></div>
						</div>
						<div class="form-hr">
							<div class="fieldLabel" title="标题">标题全名</div>
							<div class="fieldInput">
								<label id='article_full_title'></label>
							</div>
							<div class="clear"></div>
						</div>
						
						<div class="form-hr">
							<div class="fieldLabel" title="subcategory">期刊</div>
							<div class="fieldInput">
								<label id='article_subcategory'></label>
							</div>
							<div class="clear"></div>
						</div>
						<div class="form-hr">
							<div class="fieldLabel" title="journal">影响因子</div>
							<div class="fieldInput" id="article_journal_list">
							</div>
							<div class="clear"></div>
						</div>
						<div class="form-hr">
							<div class="fieldLabel" title="journal">出处</div>
							<div class="fieldInput">
								<a id="cited_half_life" target='_blank'></a>
							</div>
							<div class="clear"></div>
						</div>
						<%-- <div class="form-hr">
							<div class="fieldLabel" title="DOI">DOI/pubmedID</div>
							<div class="fieldInput">
								<label>${article.doi}</label>
							    <a id="type_1" href="http://www.ncbi.nlm.nih.gov/pubmed/${article.doi}" > 点击查看全文</a>
							    <a id="type_2" href="http://dx.doi.org/${article.doi}" > 点击查看全文</a>
							</div>
							<div class="clear"></div>
						</div> --%>
					</div>
				</form>
			</fieldset>
		</div>
	</div>
</body>
</html>